package myky.com.doctorapp.contract

import io.reactivex.Observable
import myky.com.doctorapp.base.BaseEntity
import myky.com.doctorapp.base.BaseView
import myky.com.doctorapp.entity.DoctorEntity


/**
 * Description:
 *
 * @author wuyangwuyang
 * Created by 2019/3/7 on 10:22
 */
interface SuccessfulActivityContract {
    interface Model{
        fun empower(doctorId: Int): Observable<BaseEntity<String>>
        fun empowerUpdate(doctorId: Int): Observable<BaseEntity<String>>

         fun getDoctorDeatails(doctorId: String, version: String): Observable<BaseEntity<DoctorEntity.PayLoadEntity>>
    }

    interface View :BaseView<String>{

      fun showDoctorDeatails(doctorDeatails: DoctorEntity.PayLoadEntity)
      fun showEmpowerUpdate(data: String)
    }

    interface Presenter{

        fun getDoctorDeatails(doctorId: String, version: String)
        fun pempower(doctorId: Int)
        fun pEmpowerUpdate(doctorId: Int)
    }
}
